package com.dgcsxy.my_college_note.common.utils;

public enum ResponseState {

    FAILED(1, "操作失败"),
    SUCCESS(0, "操作成功"),
    SYSTEM_ERROR(-99999, "系统异常"),
    NOT_LOGIN(401,"未登录"),
    NOT_PERMISSION(403,"无权操作");

    private int status;
    private String message;

    ResponseState(int status, String message) {
        this.status = status;
        this.message = message;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
